﻿@model WebSoftSeo.Models.ServicesDetail

@{
    ViewBag.Title = "Edit";
}
<script src="~/nicEditor/nicEdit.js"></script>
<script>
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area');

    });
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area1');

    });
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area2');

    });
</script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div class="mar10 borall">
        <div class="floatl">
            <span class="floatl">
                <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
            <span class="title-name">Sửa thông tin Dịch Vụ</span>
        </div>
        <ul class="floatr toolbar-list">
            <li id="toolbar-cancel" class="button">
                <a class="toolbar" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Index">
                    <span class="icon-32-cancel"></span>
                    Hủy bỏ
                </a>
            </li>
            <li class="button">
                <div class="toolbar">
                    <span class="icon-32-apply"></span>
                    <input type="submit" value="Lưu" />
                </div>
            </li>
        </ul>
    </div>
    <!--end borall-->
    
    <div class="clear0"></div>
    <div class="mar10 borall">
        <div class="div100">
            <div>
                <fieldset class="fromlist">
                    <ul>
                        @Html.HiddenFor(model => model.ID)     
                        @Html.HiddenFor(model => model.Type)    
                         <li>
                            @Html.LabelFor(model => model.Name, "Loại dịch vụ")
                            @Html.TextBoxFor(model => model.Name, new { size = "70" })
                            @Html.ValidationMessageFor(model => model.Name, null, new { @class = "validate" })
                        </li>

                        @Html.HiddenFor(model => model.ID)                                       
                        <li>
                            @Html.LabelFor(model => model.ShortDescription, "Tiêu đề")<span class="start">*</span>
                            @Html.TextAreaFor(model => model.ShortDescription, new { cols = "55", rows = "10" })
                            @Html.ValidationMessageFor(model => model.ShortDescription, null, new { @class = "validate" })
                        </li>

                        <li>
                            <div style="width: 470px">@Html.ValidationMessageFor(model => model.Description, null, new { @class = "validate" })
                                @Html.LabelFor(model => model.Description, "Nội dung")
                                <div style="margin-left: 245px">
                                    @Html.TextAreaFor(model => model.Description, new { id = "area", rows = 20, clos = 55, style = "Width:800px;" })

                                </div>
                                <li>
                            @Html.LabelFor(model => model.Class, "Class")
                            @Html.TextBoxFor(model => model.Class, new { size = "70" })
                            @Html.ValidationMessageFor(model => model.Class, null, new { @class = "validate" })
                        </li>
                       
                    </ul>
                </fieldset>
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
